package com.daniel.cms.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotEmpty;

/**
 * 详细说明
 *
 * @author Daniel
 * @version V1.0
 * @date 2020/4/21 10:44
 */
@Data
@TableName("t_account")
@ApiModel
@Accessors(chain = true)
public class AccountEntity extends BaseEntity {
	/**
	 * 账号
	 */
	@NotEmpty(message = "账号不能为空")
	private String account;
	/**
	 * 名称
	 */
	@NotEmpty(message = "名称不能为空")
	private String name;
	/**
	 * 密码
	 */
	private String password;
	/**
	 * 密码
	 */
	private String rule;
	/**
	 * 邮箱
	 */
	@Email(message = "邮箱格式错误")
	private String email;
	/**
	 * 电话
	 */
	private String phone;
	/**
	 * 角色
	 */
	private String roles;
	/**
	 * 介绍
	 */
	private String introduction;
	/**
	 * 头像
	 */
	private String avatar;
}
